<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
  <head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    
    <meta name="Generator" content="iWeb 1.1.2" />
    <title>JUnit Testing</title>
    <link rel="stylesheet" type="text/css" media="screen" href="JUnit%20Testing_files/JUnit%20Testing.css" /><script type="text/javascript" src="JUnit%20Testing_files/JUnit%20Testing.js"></script>
  </head>
  <body style="background: #333333; margin: 0pt; " onload="onPageLoad();">
    <div style="text-align: center; ">
      <div style="margin-bottom: 0px; margin-left: auto; margin-right: auto; margin-top: 0px; overflow: hidden; position: relative;  background: #000000; text-align: left; width: 800px; " id="body_content">
        <div style="float: left; height: 0px; line-height: 0px; margin-left: 0px; position: relative; width: 800px; z-index: 0; " id="nav_layer">
          <div style="height: 0px; line-height: 0px; " class="tinyText"> </div>
        </div>
        <div style="float: left; height: 0px; line-height: 0px; margin-left: 0px; position: relative; width: 800px; z-index: 10; " id="header_layer">
          <div style="height: 0px; line-height: 0px; " class="tinyText"> </div>
        </div>
        <div style="margin-left: 0px; position: relative; width: 800px; z-index: 5; " id="body_layer">
          <div style="height: 0px; line-height: 0px; " class="tinyText"> </div>
          <div class="graphic_textbox_style_default" style="height: 46px; left: 0px; position: absolute; top: 71px; width: 800px; z-index: 1; " id="id2">
            <div>
              <div class="graphic_textbox_layout_style_default">
                <div class="paragraph Body" style="line-height: 20px; padding-bottom: 0pt; padding-top: 0pt; "><div style="height: 44px; left: -3px; margin-bottom: -6px; margin-right: -5px; position: relative; top: -4px; width: 797px; " id="id1"><img usemap="#map1" id="shapeimage_1" src="JUnit%20Testing_files/shapeimage_1.png" style="border: none; height: 44px; left: 0px; position: absolute; top: 0px; width: 797px; z-index: 1; " alt="    Home             Download             Gallery             Developers             Documentation            Contact        Links" title="" /><map name="map1" id="map1"><area href="Home.html" title="Home.html" shape="rect" alt="Home.html" onload="IMpreload('JUnit Testing_files', 'shapeimage_1', '0');" onmouseover="IMmouseover('shapeimage_1', '0');" onmouseout="IMmouseout('shapeimage_1', '0');" coords="32, 9, 74, 31" /><area href="Download.html" title="Download.html" shape="rect" alt="Download.html" onload="IMpreload('JUnit Testing_files', 'shapeimage_1', '1');" onmouseover="IMmouseover('shapeimage_1', '1');" onmouseout="IMmouseout('shapeimage_1', '1');" coords="126, 9, 195, 31" /><area href="Gallery.html" title="Gallery.html" shape="rect" alt="Gallery.html" onload="IMpreload('JUnit Testing_files', 'shapeimage_1', '2');" onmouseover="IMmouseover('shapeimage_1', '2');" onmouseout="IMmouseout('shapeimage_1', '2');" coords="247, 9, 297, 31" /><area href="Developers.html" title="Developers.html" shape="rect" alt="Developers.html" onload="IMpreload('JUnit Testing_files', 'shapeimage_1', '3');" onmouseover="IMmouseover('shapeimage_1', '3');" onmouseout="IMmouseout('shapeimage_1', '3');" coords="349, 9, 427, 31" /><area href="Documentation.html" title="Documentation.html" shape="rect" alt="Documentation.html" onload="IMpreload('JUnit Testing_files', 'shapeimage_1', '4');" onmouseover="IMmouseover('shapeimage_1', '4');" onmouseout="IMmouseout('shapeimage_1', '4');" coords="479, 9, 582, 31" /><area href="Contact.html" title="Contact.html" shape="rect" alt="Contact.html" onload="IMpreload('JUnit Testing_files', 'shapeimage_1', '5');" onmouseover="IMmouseover('shapeimage_1', '5');" onmouseout="IMmouseout('shapeimage_1', '5');" coords="630, 9, 684, 31" /><area href="Links.html" title="Links.html" shape="rect" alt="Links.html" onload="IMpreload('JUnit Testing_files', 'shapeimage_1', '6');" onmouseover="IMmouseover('shapeimage_1', '6');" onmouseout="IMmouseout('shapeimage_1', '6');" coords="715, 9, 752, 31" /></map><img style="height: 22px; left: 32px; position: absolute; top: 9px; width: 42px; " id="shapeimage_1_link_0" alt="shapeimage_1_link_0" src="JUnit Testing_files/shapeimage_1_link_0.png" /><img style="height: 22px; left: 126px; position: absolute; top: 9px; width: 69px; " id="shapeimage_1_link_1" alt="shapeimage_1_link_1" src="JUnit Testing_files/shapeimage_1_link_1.png" /><img style="height: 22px; left: 247px; position: absolute; top: 9px; width: 50px; " id="shapeimage_1_link_2" alt="shapeimage_1_link_2" src="JUnit Testing_files/shapeimage_1_link_2.png" /><img style="height: 22px; left: 349px; position: absolute; top: 9px; width: 78px; " id="shapeimage_1_link_3" alt="shapeimage_1_link_3" src="JUnit Testing_files/shapeimage_1_link_3.png" /><img style="height: 22px; left: 479px; position: absolute; top: 9px; width: 103px; " id="shapeimage_1_link_4" alt="shapeimage_1_link_4" src="JUnit Testing_files/shapeimage_1_link_4.png" /><img style="height: 22px; left: 630px; position: absolute; top: 9px; width: 54px; " id="shapeimage_1_link_5" alt="shapeimage_1_link_5" src="JUnit Testing_files/shapeimage_1_link_5.png" /><img style="height: 22px; left: 715px; position: absolute; top: 9px; width: 37px; " id="shapeimage_1_link_6" alt="shapeimage_1_link_6" src="JUnit Testing_files/shapeimage_1_link_6.png" /></div><span class="tinyText"> </span></div>
              </div>
              <div style="clear: both; height: 0px; line-height: 0px; " class="tinyText"> </div>
            </div>
          </div>
          

<img src="JUnit%20Testing_files/shapeimage_2.jpg" alt="" style="height: 1px; left: 85px; position: absolute; top: 0px; width: 630px; z-index: 1; " />


          <div class="graphic_generic_title_textbox_style_default" style="height: 49px; left: 35px; position: absolute; top: 22px; width: 630px; z-index: 1; " id="id3">
            <div>
              <div class="graphic_shape_layout_style_default">
                <div class="paragraph Title" style="line-height: 42px; padding-bottom: 0pt; padding-top: 0pt; ">Retribution</div>
              </div>
            </div>
          </div>
          

<img src="JUnit%20Testing_files/shapeimage_3.jpg" alt="" style="height: 1px; left: -16px; position: absolute; top: 784px; width: 832px; z-index: 1; " />

<img src="JUnit%20Testing_files/shapeimage_4.png" alt="Copyright (C) Team Retribution 2007" title="" id="id4" style="height: 16px; left: 548px; position: absolute; top: 792px; width: 245px; z-index: 1; " />

<img src="JUnit%20Testing_files/shapeimage_5.png" title="" id="id5" style="height: 635px; left: 27px; position: absolute; top: 128px; width: 747px; z-index: 1; " />


          <div class="graphic_textbox_style_default" style="height: 611px; left: 51px; position: absolute; top: 151px; width: 696px; z-index: 1; " id="id6">
            <div>
              <div class="graphic_textbox_layout_style_default">
                <div class="paragraph Body" style="line-height: 20px; margin-bottom: 0px; margin-top: 0px; padding-top: 0pt; text-align: center; font-family: 'Arial-BoldMT', 'Arial', 'sans-serif'; font-size: 24px; font-weight: bold; line-height: 34px;">JUnit Test</div>
                <div class="paragraph Body" style="line-height: 20px; text-decoration: none;"> </div>
                <div class="paragraph Body" style="line-height: 20px; margin-bottom: 0px; margin-top: 0px; line-height: 20px;">This is an overview of how the JUnit tests are being carried out for team Retribution. The quality testing for this project has been carried out using the popular unit testing framework JUnit.</div>
                <div class="paragraph Body" style="line-height: 20px; margin-bottom: 0px; margin-top: 0px; line-height: 20px;  text-decoration: none;"> </div>
                <div class="paragraph Body" style="line-height: 20px; margin-bottom: 0px; margin-top: 0px; line-height: 20px;">At the beginning of the project, we were writing out the tests by hand and using them to make sure the code was correct and free of errors and failures. We found however that this was quite a time consuming process and due to the fact that we were rather inexperienced at writing JUnit tests. We also had no idea at how complete these tests were when they had been written.</div>
                <div class="paragraph Body" style="line-height: 20px; margin-bottom: 0px; margin-top: 0px; line-height: 20px;  text-decoration: none;"> </div>
                <div class="paragraph Body" style="line-height: 20px; margin-bottom: 0px; margin-top: 0px; line-height: 20px;">After doing some research into this problem we came across an test generation framework by the name of JUnit Factory. JUnit Factory is an experimental test-generation service offered freely by a company called Agitar Software. JUnit Factory offers an Eclipse plug-in that will send anything from a single class file to an entire project to JUnit Factories servers which, depending on how large the project is will return written tests to a new file in your eclipse project. We found that this was of great assistance to us due to the fact that we no longer had to spend hours writing tests that may not be fully complete, which has afforded us extra time to help out on other aspects of the project.</div>
                <div class="paragraph Body" style="line-height: 20px; margin-bottom: 0px; margin-top: 0px; line-height: 20px;  text-decoration: none;"> </div>
                <div class="paragraph Body" style="line-height: 20px; margin-bottom: 0px; margin-top: 0px; line-height: 20px;">We also found that the JUnit Factory was useful in giving us some sort of indication of how complete these tests were. When the tests are sent back to Eclipse, the plugin shows the user information about the requested tests. Our tests seemed to be quite thorough, ranging from 60% - 100%. We agreed that this was a very good result considering our tests in the beginning were probably not up to this standard.</div>
                <div class="paragraph Body" style="line-height: 20px; margin-bottom: 0px; margin-top: 0px; line-height: 20px;  text-decoration: none;"> </div>
                <div class="paragraph Body" style="line-height: 20px; margin-bottom: 0px; margin-top: 0px; line-height: 20px;">The remaining issues to be resolved are to read through any of the tests that are below the 100% complete mark to see if we can find out if any more tests can be added to make them work through the code any better. The second issue is to try to add a function to an ant build file so that the tests are run every time the code is compiled so that new errors can be caught quickly and hence can be efficiently removed.</div>
                <div class="paragraph Body" style="line-height: 20px; margin-bottom: 0px; margin-top: 0px; padding-bottom: 0pt; line-height: 20px;  text-decoration: none;"> </div>
              </div>
            </div>
          </div>
          <div style="height: 816px; line-height: 816px; " class="tinyText"> </div>
        </div>
        <div style="height: 150px; margin-left: 0px; position: relative; width: 800px; z-index: 15; " id="footer_layer">
          <div style="height: 0px; line-height: 0px; " class="tinyText"> </div>
        </div>
      </div>
    </div>
  </body>
</html>


